package com.cloud.xtools.common.response;

import cn.hutool.core.bean.BeanUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.RequiredArgsConstructor;

import java.util.List;

/**
 * @author Daixinguo
 */
@Data
public class PageList {
    private int pageNum;
    private int pageSize;
    private Long total;
    private int pages;
    private List<?> list;

    public PageList(int pageNum, int pageSize, Long total, int pages, List<?> list) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.total = total;
        this.pages = pages;
        this.list = list;
    }
}
